-- GENERATED SPELL FOR [Earthbinder Galandria Nightbreeze] --


function spell0_19294(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(33844,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19294', 6500, 1)
end

function spell1_19294(pUnit, Event) --@Moonfire,n/a--
pUnit:FullCastSpellOnTarget(31401,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19294', 12000, 1)
end

function spell2_19294(pUnit, Event) --@Wrath,n/a--
pUnit:FullCastSpellOnTarget(21807,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19294', 2000, 1)
end

function Sorts_19294(pUnit, Event)
local choix_sorts_19294 = math.random(0, 2)
if choix_sorts_19294 == 0 then
pUnit:RegisterEvent('spell0_19294', 1, 1)
end
if choix_sorts_19294 == 1 then
pUnit:RegisterEvent('spell1_19294', 1, 1)
end
if choix_sorts_19294 == 2 then
pUnit:RegisterEvent('spell2_19294', 1, 1)
end
end

function mob19294_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19294', math.random(1500, 3000), 1)
end

function mob19294_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19294_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19294_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19294, 1, 'mob19294_Action')
RegisterUnitEvent(19294, 2, 'mob19294_Leave')
RegisterUnitEvent(19294, 3, 'mob19294_Kill')
RegisterUnitEvent(19294, 4, 'mob19294_Die')
